package com.bootdo.system.domain;

import org.apache.shiro.authc.UsernamePasswordToken;

import java.io.Serializable;

/**
 * @author bootdo 1992lcg@163.com
 * @version V1.0
 */
public class UserToken extends UsernamePasswordToken implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long userId;
    private String name;
    private Long deptId;
    /**
     * 登录类型
     */
    private String loginType;

    public UserToken() {}

    public UserToken(final String username, final String password, final String loginType) {
        super(username, password);
        this.loginType = loginType;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }
}
